package com.tobeface.wechat.core.timestamp;

/**
 * @author loudyn
 */
public interface WeChatTimestampService {

    /**
     * @return
     */
    String nextNonce();

    /**
     * @return
     */
    String nextTimestamp();

    /**
     * @param timestamp
     * @return
     */
    boolean isTimestampAcceptable(String timestamp);

    /**
     * @param timestamp
     * @param nonce
     * @return
     */
    boolean isTimestampNonceFound(String timestamp, String nonce);

    /**
     * @param timestamp
     * @param nonce
     */
    void tracingTimestamp(String timestamp, String nonce);
}
